import request from '@/utils/request'

// 查询测试控件列表
export function listTestControls(query) {
  return request({
    url: '/TestControls/TestControls/list',
    method: 'get',
    params: query
  })
}

// 查询测试控件详细
export function getTestControls(id) {
  return request({
    url: '/TestControls/TestControls/' + id,
    method: 'get'
  })
}

// 新增测试控件
export function addTestControls(data) {
  return request({
    url: '/TestControls/TestControls',
    method: 'post',
    data: data
  })
}

// 修改测试控件
export function updateTestControls(data) {
  return request({
    url: '/TestControls/TestControls',
    method: 'put',
    data: data
  })
}

// 删除测试控件
export function delTestControls(id) {
  return request({
    url: '/TestControls/TestControls/' + id,
    method: 'delete'
  })
}
